home *** CD-ROM | disk | FTP | other *** search
/ PC go! 2008 April / PCgo 2008-04 (DVD).iso / interface / contents / demoversionen_3846 / 13664 / files / Data1.cab / vpwnd.h < prev    next >
Encoding:
C/C++ Source or Header  |  2001-10-16  |  1.9 KB  |  65 lines

  1. /******************************************************************/
  2. /*                                                                */
  3. /*                      TurboCAD for Windows                      */
  4. /*                   Copyright (c) 1993 - 2001                    */
  5. /*             International Microcomputer Software, Inc.         */
  6. /*                            (IMSI)                              */
  7. /*                      All rights reserved.                      */
  8. /*                                                                */
  9. /******************************************************************/
  10. // VPWnd.h : header file
  11. // TurboCAD SDK: New class created to handle the drawing view on the dialog box.
  12.  
  13. /////////////////////////////////////////////////////////////////////////////
  14. // CViewWnd window
  15.  
  16. class CViewWnd : public CWnd
  17. {
  18. // Construction
  19. public:
  20.     CViewWnd();
  21.  
  22. // Attributes
  23. protected:
  24.     View    *m_pView;
  25.     IDrawing* m_pIDrawing;
  26.     BOOL    m_bStartSelect;
  27.  
  28. // Operations
  29. public:
  30.     // Set up the current view
  31.     void SetView(View* pView);
  32.     // Zoom to the extents of the drawing and refresh the window
  33.     void ZoomAndInvalidate();
  34.     BOOL SetSelectMode();
  35.     IDrawing* GetDrawing();
  36.     Graphics* GetGraphics();
  37.  
  38.     COleVariant    m_varTopLevel;
  39.     COleVariant    m_varInvisible;
  40.     COleVariant    m_varSegments;
  41.     COleVariant    m_varArcs;
  42.     COleVariant    m_varTexts;
  43.     COleVariant    m_varBlocks;
  44.  
  45. // Overrides
  46.     // ClassWizard generated virtual function overrides
  47.     //{{AFX_VIRTUAL(CViewWnd)
  48.     //}}AFX_VIRTUAL
  49.  
  50. // Implementation
  51. public:
  52.     virtual ~CViewWnd();
  53.  
  54.     // Generated message map functions
  55. protected:
  56.     //{{AFX_MSG(CViewWnd)
  57.     afx_msg void OnPaint();
  58.     afx_msg BOOL OnEraseBkgnd(CDC* pDC);
  59.     afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
  60.     //}}AFX_MSG
  61.     DECLARE_MESSAGE_MAP()
  62. };
  63.  
  64. /////////////////////////////////////////////////////////////////////////////
  65.